I'm currently doing "code academy" and I've watched all of your videos and every other video on youTube over the last six months.
In your list basics video you teach the .append function to add to a list, as does everyone. My question is in what situation would this ever be used? I have never come across the need to add to a list later in the code this way. If I was coding and forgot something in a list I would add it to the actual list. Or if I was building a list I use +=.
Nevermind, you would use it to add to a list using variables after the program runs. Say you had an inventory program and wanted to add more stuff.
You must be logged in to post. Please login or register an account.
Looks like you answered your question. Yes, that's exactly right!
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.
I did, but I don't love my answer. Because it doesn't save it to the code. If you close the program all your work is lost. I would use a database in that scenario. Would you use it in some sort of calculation program? Where you would input a list of numbers and get an answer, but don't need to save the list.
-rbowles28 7 years ago
You must be logged in to post. Please login or register an account.